﻿<Page
    x:Class="Milkify.Views.HomeControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:m="clr-namespace:Milkify"
    xmlns:md="clr-namespace:Milkify.Data"
    Title="Home"
    KeepAlive="True">
    <Border>
        <ScrollViewer
            VerticalScrollBarVisibility="Auto">
            <ItemsControl
                Grid.IsSharedSizeScope="True"
                KeyboardNavigation.DirectionalNavigation="Cycle"
                KeyboardNavigation.TabNavigation="Once"
                Style="{DynamicResource HomeListStyle}">
                <Button
                    Name="ButtonToday"
                    Content="{Binding Today}"
                    ContentTemplate="{StaticResource TaskListItem}"
                    Command="{Binding NavigateToTaskList}"
                    CommandParameter="{Binding Today}"
                    Style="{DynamicResource TaskListButtonStyle}"
                    Click="HomeButton_Click" />
                <Button
                    Name="ButtonTomorrow"
                    Content="{Binding Tomorrow}"
                    ContentTemplate="{StaticResource TaskListItem}"
                    Command="{Binding NavigateToTaskList}"
                    CommandParameter="{Binding Tomorrow}"
                    Style="{DynamicResource TaskListButtonStyle}"
                    Click="HomeButton_Click" />
                <Button
                    Name="ButtonWeek"
                    Content="Week"
                    Command="{Binding NavigateToWeekView}"
                    Click="HomeButton_Click" />
                <Button
                    Name="ButtonLists"
                    Content="Lists"
                    Command="{Binding NavigateToTaskLists}"
                    Click="HomeButton_Click" />
                <Button
                    Name="ButtonTags"
                    Content="Tags"
                    Command="{Binding NavigateToTags}"
                    Click="HomeButton_Click" />
                <!--Button
                    Name="ButtonLocations"
                    Content="Locations"
                    Command="{Binding NavigateToLocationsCommand}" />-->
            </ItemsControl>
        </ScrollViewer>
    </Border>
</Page>
